package com.newblog.dao;

import java.util.List;

import com.newblog.model.Post;
import com.newblog.model.PostNotFoundException;

public interface PostDAO {

	public int addPost(Post post);
	
	public boolean updatePost(Post post);
	
	public boolean deletePost(Post post);
	
	public Post getPost(Post post) throws PostNotFoundException;
	
	public List getPostList(int bid,int fromPage,int limits);
	
	public List getDraftList(int bid,int fromPage,int limits);
	
	
	

}
